
class ModuleInfo {
    String name;
    bool valid;

    ModuleInfo({this.name, this.valid});

    factory ModuleInfo.fromJson(Map<String, dynamic> json) {
        return ModuleInfo(
            name: json['name'], 
            valid: json['valid'], 
        );
    }

    Map<String, dynamic> toJson() {
        final Map<String, dynamic> data = new Map<String, dynamic>();
        data['name'] = this.name;
        data['valid'] = this.valid;
        return data;
    }
}